<?php
class ThumbnailUtility
{
    public static function addByPhoto(PhotoModel $photo)
    {

    }

    private static function resize($filename, $width, $height)
    {

    }
    
    public static function getPath($width, $height)
    {
        return Yii::app()->params[ENUM_CONFIG_PARAM_PHOTO_PATH].'/'.$width.'x'.$height;
    }

    public static function getUrl($width, $height)
    {
        return Yii::app()->params[ENUM_CONFIG_PARAM_PHOTO_URL].'/'.$width.'x'.$height;
    }
}